import { FactoryTaskHelper } from "GameLoop/WorldState/EntityManager/Entitys/room/factory/FactoryTaskHelper";
import { State } from "framework/FSM/AState";
 

export class  FactoryPrepare<T extends IStateArg<Room>> extends State<T>
{

    public getActions(arg:T):Action[]
    {
        const actions:Action[] = [];
         // 检查空间是否足够
        const task = arg.entity.getTaskByType("factory")[0] ;
 
        const toptask = FactoryTaskHelper.Top(task.data.arg);
        arg.entity.log("info",`FactoryPrepare->top task ${JSON.stringify(toptask)}`);
        if(toptask)
        {

        }
        return actions;
    }
}
